//
//  BaseMacro.h
//  zeekol
//
//  Created by gaojiefeng on 2020/7/13.
//  Copyright © 2020 gaojiefeng. All rights reserved.
//

#ifndef BaseMacro_h
#define BaseMacro_h

#define Basex252631               [UIColor colorWithRGB:0x252631]
#define Basexdddddd               [UIColor colorWithRGB:0xDDDDDD]
#define Basex000000               [UIColor colorWithRGB:0x000000]
#define Basex333333               [UIColor colorWithRGB:0x333333]
#define Basex666666               [UIColor colorWithRGB:0x666666]
#define Basex999999               [UIColor colorWithRGB:0x999999]
#define Basexf8f8f8               [UIColor colorWithRGB:0xf8f8f8]
#define Basexffffff               [UIColor colorWithRGB:0xffffff]
#define BaseRadius                4.0f
#define BaseLineHeight            0.60f
#define BaseTop                   15.0f

#define RGB(R,G,B,A) [UIColor colorWithRed:R/255.0f green:G/255.0f blue:B/255.0f alpha:A]
#define SCREEN_WIDTH (MIN([UIScreen mainScreen].bounds.size.width, [UIScreen mainScreen].bounds.size.height))
#define SCREEN_HEIGHT (MAX([UIScreen mainScreen].bounds.size.width, [UIScreen mainScreen].bounds.size.height))

#define SCALEW(value)       ((CGFloat)((SCREEN_WIDTH * (value) / 375.0f)))
#define kDevice_Is_iPhoneX    [[UIApplication sharedApplication] delegate].window.safeAreaInsets.bottom > 0.0
//#define iPhone_X            [ATMacro phone_x]//is iPhone_X
#define STATUS_BAR_HIGHT    (kDevice_Is_iPhoneX ? 44: 20)//iPhone_X 44,other 20
#define NAVI_BAR_HIGHT      (kDevice_Is_iPhoneX ? 88: 64)//iPhone_X 88,other 64
#define TAB_BAR_ADDING      (kDevice_Is_iPhoneX ? 34 : 0)//iPhone_X 34,other 0

#define WEAK(object) __weak typeof(object) weak##object = object

#endif /* BaseMacro_h */
